/*
 * @(#)AuditLoginOut.java
 *
 * Copyright (c) 2003 DCIVision Ltd
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of DCIVision
 * Ltd ("Confidential Information").  You shall not disclose such Confidential
 * Information and shall use it only in accordance with the terms of the license
 * agreement you entered into with DCIVision Ltd.
 */
package com.dcivision.framework.bean;

import java.sql.Timestamp;

/**
  AuditLoginOut.java

  The bean holding data for logging user login and logout time.

    @author          Rollo Chan
    @company         DCIVision Limited
    @creation date   08/07/2003
    @version         $Revision: 1.6 $
*/

public class AuditLoginOut extends AbstractBaseObject {

  public static final String REVISION = "$Revision: 1.6 $";

  static final long serialVersionUID = 3650514284135514343L;

  public static final String STATUS_ACCOUNT_LOCKED = "L";
  public static final String STATUS_WRONG_PASSWORD = "W";
  public static final String STATUS_ATTEMPT_EXCESS = "E";
  public static final String STATUS_DUPLICATE_LOGIN = "D";
  public static final String STATUS_LOGIN_SUCCESS = "S";
  public static final String STATUS_LOGOUT_SUCCESS = "O";
  public static final String STATUS_PASSWORD_EXPIRED = "X";
  public static final String STATUS_TIMEOUT = "T";

  /** Holds value of property userRecordID. */
  private Integer userRecordID = null;

  /** Holds value of property loginDatetime. */
  private Timestamp loginDatetime = null;

  /** Holds value of property loginStatus. */
  private String loginStatus = null;

  /** Holds value of property logoutDatetime. */
  private Timestamp logoutDatetime = null;

  /** Holds value of property timeoutFlag. */
  private String timeoutFlag = null;

  /** Holds value of property IPAddress. */
  private String IPAddress;

  /** Holds value of property loginName. */
  private String loginName;

  /** Holds value of property sessionID. */
  private String sessionID;

  public AuditLoginOut() {
    super();
  }

  /** Getter for property userRecordID.
   * @return Value of property userRecordID.
   */
  public Integer getUserRecordID() {
    return(this.userRecordID);
  }

  /** Setter for property userRecordID.
   * @param IPAddress New value of property userRecordID.
   */
  public void setUserRecordID(Integer userRecordID) {
    this.userRecordID = userRecordID;
  }

  /** Getter for property loginDatetime.
   * @return Value of property loginDatetime.
   */
  public Timestamp getLoginDatetime() {
    return(this.loginDatetime);
  }

  /** Setter for property loginDatetime.
   * @param IPAddress New value of property loginDatetime.
   */
  public void setLoginDatetime(Timestamp loginDatetime) {
    this.loginDatetime = loginDatetime;
  }

  /** Getter for property loginStatus.
   * @return Value of property loginStatus.
   */
  public String getLoginStatus() {
    return(this.loginStatus);
  }

  /** Setter for property loginStatus.
   * @param IPAddress New value of property loginStatus.
   */
  public void setLoginStatus(String loginStatus) {
    this.loginStatus = loginStatus;
  }

  /** Getter for property logoutDatetime.
   * @return Value of property logoutDatetime.
   */
  public Timestamp getLogoutDatetime() {
    return(this.logoutDatetime);
  }

  /** Setter for property logoutDatetime.
   * @param IPAddress New value of property logoutDatetime.
   */
  public void setLogoutDatetime(Timestamp logoutDatetime) {
    this.logoutDatetime = logoutDatetime;
  }

  /** Getter for property timeoutFlag.
   * @return Value of property timeoutFlag.
   */
  public String getTimeoutFlag() {
    return(this.timeoutFlag);
  }

  /** Setter for property timeoutFlag.
   * @param IPAddress New value of property timeoutFlag.
   */
  public void setTimeoutFlag(String timeoutFlag) {
    this.timeoutFlag = timeoutFlag;
  }

  /** Getter for property IPAddress.
   * @return Value of property IPAddress.
   */
  public String getIPAddress() {
    return this.IPAddress;
  }

  /** Setter for property IPAddress.
   * @param IPAddress New value of property IPAddress.
   */
  public void setIPAddress(String IPAddress) {
    this.IPAddress = IPAddress;
  }

  /** Getter for property loginName.
   * @return Value of property loginName.
   */
  public String getLoginName() {
    return this.loginName;
  }

  /** Setter for property loginName.
   * @param loginName New value of property loginName.
   */
  public void setLoginName(String loginName) {
    this.loginName = loginName;
  }

  /** Getter for property sessionID.
   * @return Value of property sessionID.
   */
  public String getSessionID() {
    return this.sessionID;
  }

  /** Setter for property sessionID.
   * @param sessionID New value of property sessionID.
   */
  public void setSessionID(String sessionID) {
    this.sessionID = sessionID;
  }

}
